package com.qyhl.webtv.module_news.news.video;


import com.qyhl.webtv.commonlib.entity.intergral.CoinBean;
import com.qyhl.webtv.commonlib.entity.news.NormalNewsBean;

/**
 * Created by qyhl on 2017/12/7.
 */

public interface VideoNewsContract {
    interface VideoNewsView {
        void setDetail(NormalNewsBean bean);

        void setError(String msg);

        void setEmpty(String msg);

        void setNetError(String msg);

        void collectSuccess(String msg);

        void collectError(String msg);

        void cancelCollectSuccess();

        void cancelCollectError(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);

        void cancelCollect();

        void getCoinSuccess(CoinBean bean);

        void getCoinFailure(String msg);

        void getComCoinSuccess(CoinBean coinBean);

        void getComCoinError(String msg);

        void likeSuccess();

        void likeError(String msg);

        void cancelLikeSuccess();

        void cancelLikeError(String msg);
    }

    interface VideoNewsPresenter {
        void getDetail(String newsId);

        void collect(String newsId);//收藏

        void cancelCollect(String newsId);

        void sendComment(String title, String catalogId, String type, String id, String commentUser, String content);

        void count(String newsId);

        void setDetail(NormalNewsBean bean);

        void setError(int code, String msg);

        void collectSuccess(String msg);

        void collectError(String msg);

        void cancelCollectSuccess();

        void cancelCollectError(String msg);

        void sendSuccess(String msg);

        void sendError(String msg);

        void cancelCollect();

        void getCoin(String username);

        void getCoinSuccess(CoinBean bean);

        void getCoinFailure(String msg);

        void getCommentCoin(String type,String name);

        void getComCoinSuccess(CoinBean coinBean);

        void getComCoinError(String msg);

        void like(String newsId);//点心

        void cancelLike(String newsId);

        void likeSuccess();

        void likeError(String msg);

        void cancelLikeSuccess();

        void cancelLikeError(String msg);

        void shareCount(String newsId);
    }

    interface VideoNewsModel {
        void getDetail(String newsId);

        void collect(String newsId);//收藏

        void cancelCollect(String newsId);

        void sendComment(String title, String catalogId, String type, String id, String commentUser, String content);

        void count(String newsId);

        void getCoin(String username);

        void getCommentCoin(String type,String name);

        void like(String newsId);//点心

        void cancelLike(String newsId);

        void shareCount(String newsId);
    }
}
